package com.wisdytech.linkdcs.ieMaintenance.model;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 物料主表
 * </p>
 *
 * @author chenbin
 * @since 2018-07-20
 */
public class TmMaterial extends Model<TmMaterial> {

    private static final long serialVersionUID = 1L;

    @TableId("PK_ID")
    private String pkId;
    /**
     * 0：原材料，1：备件，2：产品
     */
    @TableField("MATERIAL_TYPE")
    private String materialType;
    /**
     * 物料编码
     */
    @TableField("MATERIAL_CODE")
    private String materialCode;
    /**
     * 物料名称
     */
    @TableField("MATERIAL_NAME")
    private String materialName;
    /**
     * 物料型号ID
     */
    @TableField("PRODUCT_MODEL_ID")
    private String productModelId;
    /**
     * 物料主单位
     */
    @TableField("MATERIAL_UNIT")
    private String materialUnit;
    /**
     * 工序id
     */
    @TableField("OP_ID")
    private String opId;
    @TableField("MATERIAL_UNIT_NAME")
    private String materialUnitName;
    /**
     * 规格型号
     */
    @TableField("SPEC")
    private String spec;
    /**
     * 辅助单位
     */
    @TableField("AUXILIARY_UNIT")
    private String auxiliaryUnit;
    /**
     * 单位折换系数
     */
    @TableField("UNIT_CONVERSION")
    private Double unitConversion;
    /**
     * 主单位用时
     */
    @TableField("UNIT_WORK_TIME")
    private Double unitWorkTime;
    /**
     * 有效期
     */
    @TableField("SHELF_LIFE")
    private Double shelfLife;
    /**
     * 批次管理标识 0：否、1：是
     */
    @TableField("BATCH_MNG_FLAG")
    private String batchMngFlag;
    /**
     * 转出最小工时
     */
    @TableField("MIN_TRANSFER_TIME")
    private Double minTransferTime;
    /**
     * 是否半成品标识 0：否、1：是
     */
    @TableField("PROD_FLAG")
    private String prodFlag;
    /**
     * 是否成品标识 0：否、1：是
     */
    @TableField("PRODUCT_FLAG")
    private String productFlag;
    /**
     * 扩展属性字符1
     */
    @TableField("ATTR_STR1")
    private String attrStr1;
    /**
     * 扩展属性字符2
     */
    @TableField("ATTR_STR2")
    private String attrStr2;
    /**
     * 扩展属性字符3
     */
    @TableField("ATTR_STR3")
    private String attrStr3;
    /**
     * 扩展属性数字1
     */
    @TableField("ATTR_NUM1")
    private Double attrNum1;
    /**
     * 扩展属性数字2
     */
    @TableField("ATTR_NUM2")
    private Double attrNum2;
    /**
     * 扩展属性数字3
     */
    @TableField("ATTR_NUM3")
    private Double attrNum3;
    @TableField("UPDATE_DATE")
    private Date updateDate;
    @TableField("UPDATE_USER")
    private String updateUser;
    @TableField("CREATE_DATE")
    private Date createDate;
    @TableField("DEL_FLAG")
    private String delFlag;
    @TableField("CREATE_USER")
    private String createUser;
    @TableField("REMARK")
    private String remark;
    @TableField("SUPPLIER_ID")
    private String supplierId;
    /**
     * 合批入库
     */
    @TableField("COMBINE_BATCH_IN_WAREHOUSE")
    private String combineBatchInWarehouse;
    /**
     * 安全库存
     */
    @TableField("SAFE_INVENTORY")
    private Double safeInventory;
    /**
     * 型号编码
     */
    @TableField("MODEL_CODE")
    private String modelCode;
    /**
     * 物料类别id
     */
    @TableField("MATERIAL_CATEGORY_ID")
    private String materialCategoryId;
    @TableField("QM_TYPE_ID")
    private String qmTypeId;
    /**
     * 免检标识(1.是，0.否)
     */
    @TableField("FREE_INSPECTION_FLAG")
    private String freeInspectionFlag;


    public String getPkId() {
        return pkId;
    }

    public void setPkId(String pkId) {
        this.pkId = pkId;
    }

    public String getMaterialType() {
        return materialType;
    }

    public void setMaterialType(String materialType) {
        this.materialType = materialType;
    }

    public String getMaterialCode() {
        return materialCode;
    }

    public void setMaterialCode(String materialCode) {
        this.materialCode = materialCode;
    }

    public String getMaterialName() {
        return materialName;
    }

    public void setMaterialName(String materialName) {
        this.materialName = materialName;
    }

    public String getProductModelId() {
        return productModelId;
    }

    public void setProductModelId(String productModelId) {
        this.productModelId = productModelId;
    }

    public String getMaterialUnit() {
        return materialUnit;
    }

    public void setMaterialUnit(String materialUnit) {
        this.materialUnit = materialUnit;
    }

    public String getOpId() {
        return opId;
    }

    public void setOpId(String opId) {
        this.opId = opId;
    }

    public String getMaterialUnitName() {
        return materialUnitName;
    }

    public void setMaterialUnitName(String materialUnitName) {
        this.materialUnitName = materialUnitName;
    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    public String getAuxiliaryUnit() {
        return auxiliaryUnit;
    }

    public void setAuxiliaryUnit(String auxiliaryUnit) {
        this.auxiliaryUnit = auxiliaryUnit;
    }

    public Double getUnitConversion() {
        return unitConversion;
    }

    public void setUnitConversion(Double unitConversion) {
        this.unitConversion = unitConversion;
    }

    public Double getUnitWorkTime() {
        return unitWorkTime;
    }

    public void setUnitWorkTime(Double unitWorkTime) {
        this.unitWorkTime = unitWorkTime;
    }

    public Double getShelfLife() {
        return shelfLife;
    }

    public void setShelfLife(Double shelfLife) {
        this.shelfLife = shelfLife;
    }

    public String getBatchMngFlag() {
        return batchMngFlag;
    }

    public void setBatchMngFlag(String batchMngFlag) {
        this.batchMngFlag = batchMngFlag;
    }

    public Double getMinTransferTime() {
        return minTransferTime;
    }

    public void setMinTransferTime(Double minTransferTime) {
        this.minTransferTime = minTransferTime;
    }

    public String getProdFlag() {
        return prodFlag;
    }

    public void setProdFlag(String prodFlag) {
        this.prodFlag = prodFlag;
    }

    public String getProductFlag() {
        return productFlag;
    }

    public void setProductFlag(String productFlag) {
        this.productFlag = productFlag;
    }

    public String getAttrStr1() {
        return attrStr1;
    }

    public void setAttrStr1(String attrStr1) {
        this.attrStr1 = attrStr1;
    }

    public String getAttrStr2() {
        return attrStr2;
    }

    public void setAttrStr2(String attrStr2) {
        this.attrStr2 = attrStr2;
    }

    public String getAttrStr3() {
        return attrStr3;
    }

    public void setAttrStr3(String attrStr3) {
        this.attrStr3 = attrStr3;
    }

    public Double getAttrNum1() {
        return attrNum1;
    }

    public void setAttrNum1(Double attrNum1) {
        this.attrNum1 = attrNum1;
    }

    public Double getAttrNum2() {
        return attrNum2;
    }

    public void setAttrNum2(Double attrNum2) {
        this.attrNum2 = attrNum2;
    }

    public Double getAttrNum3() {
        return attrNum3;
    }

    public void setAttrNum3(Double attrNum3) {
        this.attrNum3 = attrNum3;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(String supplierId) {
        this.supplierId = supplierId;
    }

    public String getCombineBatchInWarehouse() {
        return combineBatchInWarehouse;
    }

    public void setCombineBatchInWarehouse(String combineBatchInWarehouse) {
        this.combineBatchInWarehouse = combineBatchInWarehouse;
    }

    public Double getSafeInventory() {
        return safeInventory;
    }

    public void setSafeInventory(Double safeInventory) {
        this.safeInventory = safeInventory;
    }

    public String getModelCode() {
        return modelCode;
    }

    public void setModelCode(String modelCode) {
        this.modelCode = modelCode;
    }

    public String getMaterialCategoryId() {
        return materialCategoryId;
    }

    public void setMaterialCategoryId(String materialCategoryId) {
        this.materialCategoryId = materialCategoryId;
    }

    public String getQmTypeId() {
        return qmTypeId;
    }

    public void setQmTypeId(String qmTypeId) {
        this.qmTypeId = qmTypeId;
    }

    public String getFreeInspectionFlag() {
        return freeInspectionFlag;
    }

    public void setFreeInspectionFlag(String freeInspectionFlag) {
        this.freeInspectionFlag = freeInspectionFlag;
    }

    @Override
    protected Serializable pkVal() {
        return this.pkId;
    }

    @Override
    public String toString() {
        return "TmMaterial{" +
        ", pkId=" + pkId +
        ", materialType=" + materialType +
        ", materialCode=" + materialCode +
        ", materialName=" + materialName +
        ", productModelId=" + productModelId +
        ", materialUnit=" + materialUnit +
        ", opId=" + opId +
        ", materialUnitName=" + materialUnitName +
        ", spec=" + spec +
        ", auxiliaryUnit=" + auxiliaryUnit +
        ", unitConversion=" + unitConversion +
        ", unitWorkTime=" + unitWorkTime +
        ", shelfLife=" + shelfLife +
        ", batchMngFlag=" + batchMngFlag +
        ", minTransferTime=" + minTransferTime +
        ", prodFlag=" + prodFlag +
        ", productFlag=" + productFlag +
        ", attrStr1=" + attrStr1 +
        ", attrStr2=" + attrStr2 +
        ", attrStr3=" + attrStr3 +
        ", attrNum1=" + attrNum1 +
        ", attrNum2=" + attrNum2 +
        ", attrNum3=" + attrNum3 +
        ", updateDate=" + updateDate +
        ", updateUser=" + updateUser +
        ", createDate=" + createDate +
        ", delFlag=" + delFlag +
        ", createUser=" + createUser +
        ", remark=" + remark +
        ", supplierId=" + supplierId +
        ", combineBatchInWarehouse=" + combineBatchInWarehouse +
        ", safeInventory=" + safeInventory +
        ", modelCode=" + modelCode +
        ", materialCategoryId=" + materialCategoryId +
        ", qmTypeId=" + qmTypeId +
        ", freeInspectionFlag=" + freeInspectionFlag +
        "}";
    }
}
